<?php /* Smarty version Smarty-3.1.13, created on 2013-06-16 15:12:04
         compiled from "/var/www/html/insite/templates/en/newsletters/main.tpl" */ ?>
<?php /*%%SmartyHeaderCode:167511640851bd6544b7f871-18084843%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '328b0ae635b145d862f8a347da9566f1f4a35886' => 
    array (
      0 => '/var/www/html/insite/templates/en/newsletters/main.tpl',
      1 => 1371365921,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '167511640851bd6544b7f871-18084843',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'msg' => 0,
    'link_create' => 0,
    'link_category' => 0,
    'action' => 0,
    's_name' => 0,
    'categories' => 0,
    'category' => 0,
    'paging' => 0,
    'total' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51bd6544cc8653_72749193',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51bd6544cc8653_72749193')) {function content_51bd6544cc8653_72749193($_smarty_tpl) {?> 
<script>
 function checkItem(task, action) 
 {
	 frm = document.frmAdmin;
	 total = frm.total.value;
	 check = false;
	 a = confirm('Do you want to delete?');
	 if(a) {
		 for(i = 1; i < total; i++) {
			 id = document.getElementById('cid' + i);
			 if (id.checked) {
				 check = true;
				 break;
			 }
		 }
		 
		 if (!check) {
			 alert('Please select item to delete!!!');
			 return false;
		 } 
		 frm.action = action;
		 frm.task.value = task;
		 frm.submit();
	 }
 }
 function checkAll(chkAll) 
 {
   frm = document.frmAdmin;
   total = frm.total.value;
	 if(chkAll.checked) {
		 for(i = 1; i <= total; i++) {
			 id = document.getElementById('cid' + i);
			 id.checked = true;
		 }
	 } else {
		 for(i = 1; i <= total; i++) {
			 id = document.getElementById('cid' + i);
			 id.checked = false;
		 }
		 
	 }
 } 
</script> 
<style>
form {
	margin: 0;
	padding: 0;
}
</style>
 
<!-- Content Area -->
<div id="content"> 
  
  <!-- Component Title -->
  <div class="pagetitle icon-48-module">
    <h2>Manager: Newsletter</h2>
  </div>
  
  <!-- System Messages -->
  
  <div id="system-message-container"> <?php if ($_smarty_tpl->tpl_vars['msg']->value){?>
    <dl id="system-message">
      <dt class="message">Message</dt>
      <dd class="message message">
        <ul>
          <li><?php echo $_smarty_tpl->tpl_vars['msg']->value;?>
</li>
        </ul>
      </dd>
    </dl>
    <?php }?> </div>
  
  <!-- Sub Menu Navigation -->
  <div class="subheader">
    <h3 class="element-invisible">Sub Menu</h3>
    <div id="no-submenu"></div>
  </div>
  
  <!-- Toolbar Icon Buttons -->
  <div class="actionbar-box">
    <div class="module">
      <h3>Toolbar</h3>
      <div class="actionbar-list" id="actionbar">
        <ul>
          <li id="actionbar-popup-new">
          <a class="modal" href="#" onClick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['link_create']->value;?>
'" >
          <span class="icon-32-new">
          </span>
          New
          </a>
          </li>
          <li id="actionbar-trash"> <a href="#" class="actionbar"  onClick="javascript:checkItem('delete', '<?php echo $_smarty_tpl->tpl_vars['link_category']->value;?>
');"> <span class="icon-32-trash"> </span> Delete </a> </li>
          <li class="divider"> </li>
        </ul>
        <div class="clr"></div>
      </div>
    </div>
    <div class="clr"></div>
  </div>
  
  <!-- Beginning of Actual Content -->
  <div id="element-box">
    <p id="skiptargetholder"><a id="skiptarget" class="skip" tabindex="-1"></a></p>
    <form name="frmAdmin" action="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
" method="post">
      <fieldset id="filter-bar">
        <legend class="element-invisible">Filter:</legend>
        <div class="filter-search">
          <label class="filter-search-lbl" for="filter_search">Filter:</label>
          <input type="text" name="s_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s_name']->value, ENT_QUOTES, 'UTF-8', true);?>
"  title="Search in module title." />
          <button type="submit">Search</button>
        </div>
      </fieldset>
      <div class="clr"> </div>
      <table class="adminlist">
        <thead>
          <tr>
            <th class="checkmark-col"> <input type="checkbox" name="checkall-toggle" value="" title="Check All" onclick="checkAll(this);" />
            </th>
            <th class="width-20"> <a href="#">Subject</a> </th>
            <th class="width-20"> <a href="#" >Created Date</a> </th>
            <th class="width-20"> <a href="#">Sender Information</a> </th>
            <th class="width-20"> <a href="#">Published</a> </th>
            <th class="width-20"> <a href="#">ID</a> </th>
            <th class="width-20"> <a href="#">Send</a> </th>
          </tr>
        </thead>
        <tbody>
        
        <?php if ($_smarty_tpl->tpl_vars['categories']->value){?>  
        <?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['category']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
$_smarty_tpl->tpl_vars['category']->_loop = true;
?>
          <tr <?php if ($_smarty_tpl->tpl_vars['category']->value['row']){?> class="row1" <?php }else{ ?> class="row0" <?php }?>>
          <td class="center"><input type="checkbox" id="cid<?php echo $_smarty_tpl->tpl_vars['category']->value['idx'];?>
" name="cid[<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?>
" title="Checkbox for row 1" /></td>
          <td class="center"><a href="<?php echo $_smarty_tpl->tpl_vars['category']->value['link'];?>
"><?php echo $_smarty_tpl->tpl_vars['category']->value['subject'];?>
</a></td>
          <td class="center"><?php echo $_smarty_tpl->tpl_vars['category']->value['createddate'];?>
</td>
          <td class="center"><?php echo $_smarty_tpl->tpl_vars['category']->value['fromname'];?>
</td>
          <td class="center"><?php if ($_smarty_tpl->tpl_vars['category']->value['published']){?>Yes<?php }else{ ?>No<?php }?></td>
          <td class="center"><?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?>
</td>
          <td class="center"><a href="<?php echo $_smarty_tpl->tpl_vars['category']->value['preview'];?>
">Preview/Send</a></td>
        </tr>
        <?php } ?>
        <?php }else{ ?>
        <?php }?>
          </tbody>
        
      </table>
      <div class="limit"><?php echo $_smarty_tpl->tpl_vars['paging']->value;?>
</div>
      <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['total']->value;?>
" name="total"  />
      <input type="hidden" value="" name="task"  />
    </form>
    <div class="clr"></div>
  </div>
  <!-- end of element-box -->
  
  <noscript>
  Warning! JavaScript must be enabled for proper operation of the Administrator backend.
  </noscript>
  <div class="clr"></div>
</div>
<!-- end of content --> 
<?php }} ?>